﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Sys
{
    /// <summary>
    /// 用户角色关系表
    /// </summary>
    [SugarTable("Sys_UserRole")]
    public class SysUserRole : BaseEntity<SysUserRole, long>
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", IsNullable = false, ColumnDescription = "用户ID")]
        public long UserId { get; set; }

        /// <summary>
        /// 角色ID
        /// </summary>
        [SugarColumn(ColumnDataType = "bigint", IsNullable = false, ColumnDescription = "角色ID")]
        public long RoleId { get; set; }
    }
}
